{layout name="layout" $title/}
  <div class="col-md-9">
    <div class="panel panel-default  panel-success">
      <div class="panel-heading">
        <h3 class="panel-title">编辑员工信息</h3>
      </div>
      <div class="panel-body">
        <form class="form-horizontal" method="post" class="post" action="{:url('office/employee/update','id='.$employee.id)}" enctype="multipart/form-data">
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">编 码</label>
            <div class="col-md-9">
              <INPUT type="text" class="form-control" name="code" id="inputPassword3" value="{$employee.code}" readonly>
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">名 称</label>
            <div class="col-md-9">
              <INPUT type="text" class="form-control" name="title" id="inputPassword3" value="{$employee.title}">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">密 码</label>
            <div class="col-md-9">
              <INPUT type="text" class="form-control" name="password" id="inputPassword3" value="{$employee.password}">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">地 址</label>
            <div class="col-md-9">
              <INPUT type="text" class="form-control" name="address" id="inputPassword3" value="{$employee.address}">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">增加记录人ID</label>
            <div class="col-md-9">
              <INPUT type="text" class="form-control" name="create_id" id="inputPassword3" value="{$employee.create_id}" readonly>
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">增加记录人姓名</label>
            <div class="col-md-9">
              <INPUT type="text" class="form-control" name="create_name" id="inputPassword3" value="{$employee.create_name}" readonly>
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">增加记录时间</label>
            <div class="col-md-9">
              <INPUT type="date" class="form-control" name="create_time" id="inputPassword3" value="{$employee.create_time}" readonly>
            </div>
          </div>
         <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">更新记录时间</label>
            <div class="col-md-9">
              <INPUT type="date" class="form-control" name="update_time" id="inputPassword3" value="{$employee.update_time}"  readonly>
            </div>
          </div>
         <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">详细说明</label>
            <div class="col-md-9">
              <textarea class="form-control" rows="5" name="detail" id="inputPassword3">{$employee.detail}</textarea>
            </div>
          </div>
          <!-- 注:此段为演示用,并无数据来源,也不会传递数据 ↓ -->
          <div class="form-group">
              <label class="col-md-2 control-label" for="exampleInputAmount">单价</label>
              <div class="input-group col-md-9">
                <div class="input-group-addon">$</div>
                <input type="text" class="form-control" id="exampleInputAmount" placeholder="费用...">
                <div class="input-group-addon">.00</div>
              </div>
          </div>
          <!-- 注:此段为演示用,并无数据来源 ,也不会传递数据↑ -->
          <div class="form-group">
            <label for="inputEmail3" class="col-md-2 control-label">是否某事情</label>
            <div class="col-md-9">
                <label class="radio-inline">
                  <input type="radio" name="is_sth" id="inlineRadio1" value="0" {$employee.is_sth==0?='checked'}> 否
                </label>
                <label class="radio-inline">
                  <input type="radio" name="is_sth" id="inlineRadio2" value="1" {$employee.is_sth==1?='checked'}>是
                </label>
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">某物数量</label>
            <div class="col-md-9">
              <input type="number" name='sth_num' class="form-control" id="inputPassword3"  value="{$employee.sth_num}">
            </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-md-2 control-label">状态</label>
            <div class="col-md-9">
              <select name="static" class="form-control">
                <option value='' >--请选择--</option>
                <option value='0' {$employee.static==0?='selected'}>删除</option>
                <option value='1' {$employee.static==1?='selected'}>正常</option>
                <option value='2' {$employee.static==2?='selected'}>借调</option>
                <option value='3' {$employee.static==3?='selected'}>休假</option>
                <option value='4' {$employee.static==4?='selected'}>其他</option>
              </select>
            </div>
          </div>
          <!-- 注:此段为文件上传,测试 ↓ -->
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">照片</label>
            <div class="col-md-9">
              <img src="{:url('/uploads/'.$employee.pic_name)}" class="img-responsive img-thumbnail" alt="暂无照片...">
              <input type="file" name='pic' class="form-control" id="inputPassword3"  placeholder="请选择照片...">
            </div>
          </div>
          <!-- 注:此段为文件上传,测试 ↑ -->
          <div class="form-group">
            <div class="col-md-offset-2 col-md-9">
              <p>
                <input type="hidden" name="__token__" value="{$Request.token}" />
                <a href="{:url('office/employee/index')}"  class="btn btn-primary">返  回 <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span></a>
                <button type="submit" class="btn btn-primary">提  交 <span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span></button>
                <a href="{:url('office/employee/delete','id='.$employee.id)}" class="btn btn-danger">彻底删除 <span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
              </p>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>